home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1926 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  623 b   |  25 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 2)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "The drawer looks looks like it\'s unlocked.";
  8.       }
  9.       if(_root.micon._currentframe == 1 && _root.range == true)
  10.       {
  11.          if(_root.even26 < 2)
  12.          {
  13.             _root.next_dis1 = 2;
  14.             _root.next_txt1 = "Let\'s see what\'s in this drawer.";
  15.             nextFrame();
  16.          }
  17.          else
  18.          {
  19.             _root.next_dis1 = 2;
  20.             _root.next_txt1 = "It\'s empty now.";
  21.          }
  22.       }
  23.    }
  24. }
  25.